import {
	defineConfig
} from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
	title: "前端",
	description: "前端学习文档",
	themeConfig: {
		logo: "/static/1.jfif",
		search: {
			provider: "local"
		},
		// https://vitepress.dev/reference/default-theme-config
		nav: [{
				text: "首页",
				link: "/"
			},
			{
				text: "入门",
				link: "/入门"
			},
			{
				text: "css",
				link: "/走进css"
			},
			{
				text: "js",
				link: "/javascript进阶"
			},
		],

		sidebar: {
			"/入门/": [{
				text: "前言",
				items: [{
					text: "前端语言介绍",
					link: "/入门/前端语言介绍"
				}, {
					text: "vscode",
					link: "/入门/vscode"
				}, {
					text: "HTML",
					link: "/入门/html"
				}]
			}, ],
			"/css/": [{
				text: "css",
				items: [{
					text: "css",
					link: "/css/index"
				}]
			}, ]
		}
	}
});